package com.example.yinhangmiaosha.util;

/**
 * 分别用于：
 * 活动时间
 * 活动准则
 * 初筛判断
 * 初筛时间
 * 接口隐藏
 * 访问频率限制
 * 秒杀剩余数
 * 用户限购
 */
public enum CacheKey {
    ACTIVITY_TIME("miaosha_v1_activity_time"),
    ACTIVITY_RULE("miaosha_v1_activity_rule"),
    USER_PERMISSION("miaosha_v1_user_permission"),
    USER_PERMISSION_TIME("miaosha_v1_user_permission_time"),
    HASH_KEY("miaosha_v1_user_hash"),
    LIMIT_KEY("miaosha_v1_user_limit"),
    STOCK_COUNT("miaosha_v1_stock_count"),
    USER_HAS_ORDER("miaosha_v1_user_has_order");

    private String key;
    private CacheKey(String key) {
        this.key = key;
    }
    public String getKey() {
        return key;
    }
}
